package com.lms.generictype.demo3;

import java.util.ArrayList;
import java.util.LinkedList;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-01-16 17:03
 * @Description: 泛型方法
 */
public class Test {
    public static void main(String[] args) {
        Person person = new Person();
        Integer age  = person.set(10);
        System.out.println(age);
        String age1 = person.set("不合法");
        System.out.println(age1);
    }
}
